package com.jcms.cms.entity.parcel;

// default package

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * Order entity. @author MyEclipse Persistence Tools
 */

public class Order  implements java.io.Serializable {

	public static final int AM = 1;
	public static final int PM = 2;
	public static final int NEED_INSURANCE = 1;
	public static final int NOT_NEED_INSURANCE = 0;
	public static final int IS_PAY = 1;
	public static final int IS_NOT_PAY = 0;

    // Fields    

     private Integer id;
     private CourierCompany courierCompany;
     private com.jcms.cms.entity.main.CmsUser user;
     private String orderNumber;
     private Integer parcelNum;
     private String destination;
     private Date collectionTime;
     private Integer collectionPeriod;
     private String collectionName;
     private String collectionAddress;
     private String collectionTel;
     private String email;
     private String deliveryName;
     private String deliveryAddress;
     private String deliveryZipCode;
     private String deliveryTel;
     private Integer isNeedInsurance;
     private String reasonForSending;
     private Integer isPay;
     private Double paymentMoney;
     private Date paymentDate;
     private String knowCompany;
     private String href;
     private Set parcels = new HashSet(0);


    // Constructors

    /** default constructor */
    public Order() {
    }

    
    /** full constructor */
    public Order(CourierCompany courierCompany, com.jcms.cms.entity.main.CmsUser user, String orderNumber, Integer parcelNum, String destination, Date collectionTime, Integer collectionPeriod, String collectionName, String collectionAddress, String collectionTel, String email, String deliveryName, String deliveryAddress, String deliveryZipCode, String deliveryTel, Integer isNeedInsurance, String reasonForSending, Integer isPay, Double paymentMoney, Date paymentDate, String knowCompany, String href, Set parcels) {
        this.courierCompany = courierCompany;
        this.user = user;
        this.orderNumber = orderNumber;
        this.parcelNum = parcelNum;
        this.destination = destination;
        this.collectionTime = collectionTime;
        this.collectionPeriod = collectionPeriod;
        this.collectionName = collectionName;
        this.collectionAddress = collectionAddress;
        this.collectionTel = collectionTel;
        this.email = email;
        this.deliveryName = deliveryName;
        this.deliveryAddress = deliveryAddress;
        this.deliveryZipCode = deliveryZipCode;
        this.deliveryTel = deliveryTel;
        this.isNeedInsurance = isNeedInsurance;
        this.reasonForSending = reasonForSending;
        this.isPay = isPay;
        this.paymentMoney = paymentMoney;
        this.paymentDate = paymentDate;
        this.knowCompany = knowCompany;
        this.parcels = parcels;
        this.href = href;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public CourierCompany getCourierCompany() {
        return this.courierCompany;
    }
    
    public void setCourierCompany(CourierCompany courierCompany) {
        this.courierCompany = courierCompany;
    }

    public com.jcms.cms.entity.main.CmsUser getUser() {
		return user;
	}

	public void setUser(com.jcms.cms.entity.main.CmsUser user) {
		this.user = user;
	}

	public String getOrderNumber() {
        return this.orderNumber;
    }
    
    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getParcelNum() {
        return this.parcelNum;
    }
    
    public void setParcelNum(Integer parcelNum) {
        this.parcelNum = parcelNum;
    }

    public String getDestination() {
        return this.destination;
    }
    
    public void setDestination(String destination) {
        this.destination = destination;
    }

    public Date getCollectionTime() {
        return this.collectionTime;
    }
    
    public void setCollectionTime(Date collectionTime) {
        this.collectionTime = collectionTime;
    }

    public Integer getCollectionPeriod() {
        return this.collectionPeriod;
    }
    
    public void setCollectionPeriod(Integer collectionPeriod) {
        this.collectionPeriod = collectionPeriod;
    }

    public String getCollectionName() {
        return this.collectionName;
    }
    
    public void setCollectionName(String collectionName) {
        this.collectionName = collectionName;
    }

    public String getCollectionAddress() {
        return this.collectionAddress;
    }
    
    public void setCollectionAddress(String collectionAddress) {
        this.collectionAddress = collectionAddress;
    }

    public String getCollectionTel() {
        return this.collectionTel;
    }
    
    public void setCollectionTel(String collectionTel) {
        this.collectionTel = collectionTel;
    }

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }

    public String getDeliveryName() {
        return this.deliveryName;
    }
    
    public void setDeliveryName(String deliveryName) {
        this.deliveryName = deliveryName;
    }

    public String getDeliveryAddress() {
        return this.deliveryAddress;
    }
    
    public void setDeliveryAddress(String deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public String getDeliveryZipCode() {
        return this.deliveryZipCode;
    }
    
    public void setDeliveryZipCode(String deliveryZipCode) {
        this.deliveryZipCode = deliveryZipCode;
    }

    public String getDeliveryTel() {
        return this.deliveryTel;
    }
    
    public void setDeliveryTel(String deliveryTel) {
        this.deliveryTel = deliveryTel;
    }

    public Integer getIsNeedInsurance() {
        return this.isNeedInsurance;
    }
    
    public void setIsNeedInsurance(Integer isNeedInsurance) {
        this.isNeedInsurance = isNeedInsurance;
    }

    public String getReasonForSending() {
        return this.reasonForSending;
    }
    
    public void setReasonForSending(String reasonForSending) {
        this.reasonForSending = reasonForSending;
    }

    public Integer getIsPay() {
        return this.isPay;
    }
    
    public void setIsPay(Integer isPay) {
        this.isPay = isPay;
    }

    public Double getPaymentMoney() {
        return this.paymentMoney;
    }
    
    public void setPaymentMoney(Double paymentMoney) {
        this.paymentMoney = paymentMoney;
    }

    public Date getPaymentDate() {
        return this.paymentDate;
    }
    
    public void setPaymentDate(Date paymentDate) {
        this.paymentDate = paymentDate;
    }

    public String getKnowCompany() {
        return this.knowCompany;
    }
    
    public void setKnowCompany(String knowCompany) {
        this.knowCompany = knowCompany;
    }

    public Set getParcels() {
        return this.parcels;
    }
    
    public void setParcels(Set parcels) {
        this.parcels = parcels;
    }


	public String getHref() {
		return href;
	}


	public void setHref(String href) {
		this.href = href;
	}
   








}